<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./data.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 1250px;
            margin: 0 auto;
        }

        header,
        footer {
            width: 100%;
            height: 70px;
            background-color: skyblue;
            text-align: center;
            line-height: 70px;
            font-size: 35px;
            color: #fff;
        }

        main {
            margin: 10px 0px 0px;
            display: flex;
            flex-flow: wrap;
            justify-content: space-around;
        }

        .circle {
            width: 300px;
            border: 1px solid #000;
            margin-bottom: 10px;
            padding-bottom: 15px;
        }

        img {
            display: block;
            width: 100%;
        }

        p {
            padding: 15px 0 0 15px;
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <script>
        let box = document.querySelector(".box");
        // 网页头部
        let head = `<header>网页头部</header>`
        box.innerHTML += head;

        // 网页内容
        let main = `<main>`;
        // 内容盒子
        list.forEach(function (item) {
            main += `
            <div class="circle">
                <div class="imgBox">
                    <img src="${item.pic}" alt="">
                </div>
                <div class="textBox">
                    <p>${item.name}</p>
                    <p>城市：${item.city}</p>
                    <p>地址：${item.address}</p>
                    <p>价格：${item.price}</p>
                    <p>演出时间：${item.showTime}</p>
                </div>
            </div>
            `;
        });
        main += `</main>`;
        box.innerHTML += main;

        // 网页底部
        let footer = `<footer>网页底部</footer>`;
        box.innerHTML += footer;
    </script>
</body>

</html>